package com.aisino.efence.enums;

/**
 * 返回枚举
 *
 * @author fzc
 * @create 2018-04-04 10:56
 **/
public enum ResultEnum {
    SUCCESS(200, "成功！"),
    PARAM_ERROR(400, "参数错误问题"),
    DECRYPT_ERROR(403, "参数解密错误"),
    RESOURCE_DEL(410, "资源被删除");

    private int code;

    private String message;

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }


    @Override
    public String toString() {
        return "ResultEnum{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
